import request from 'UTIL/request';


/**
 * 日程列表
 * @param params
 */
export function QueryList(params) {
  return request({
    url: '/OaEvent/queryList',
    method: 'POST',
    data: params
  });
}

/**
 * 根据id查询日程详情
 * @param params
 */
export function QueryById(params) {
  return request({
    url: '/OaEvent/queryById',
    method: 'POST',
    data: params
  });
}

/**
 * 创建日程
 * @param params
 */
export function AddSchedule(params) {
  return request({
    url: '/OaEvent/add',
    method: 'POST',
    data: params
  });
}

/**
 * 根据id编辑日程
 * @param params
 */
export function UpdateSchedule(params) {
  return request({
    url: '/OaEvent/update',
    method: 'POST',
    data: params
  });
}

/**
 * 根据id删除日程
 * @param params
 */
export function DeleteSchedule(params) {
  return request({
    url: '/OaEvent/delete',
    method: 'POST',
    data: params
  });
}
